package utils;

import com.sun.org.apache.xerces.internal.xs.StringList;

import java.util.Arrays;
import java.util.List;

/**
 * bean复制
 */
public class BeanUtil {

    public static void main(String[] args) {

    }

    private void demo(){
        Man man = new Man();
        man.setId(1);
        man.setCode(1);
        man.setName("aaa");
        man.setStrings(Arrays.asList("a","b"));
        Woman woman = new Woman();

    }


    class Man{
        private Integer id;
        private int code;
        private String name;
        private List<String> strings;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<String> getStrings() {
            return strings;
        }

        public void setStrings(List<String> strings) {
            this.strings = strings;
        }
    }
    class Woman{
        private Integer id;
        private int code;
        private String name;
        private List<String> strings;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<String> getStrings() {
            return strings;
        }

        public void setStrings(List<String> strings) {
            this.strings = strings;
        }
    }
    class Person{
       private Man man;
       private List<Woman> womanList;

        public Man getMan() {
            return man;
        }

        public void setMan(Man man) {
            this.man = man;
        }

        public List<Woman> getWomanList() {
            return womanList;
        }

        public void setWomanList(List<Woman> womanList) {
            this.womanList = womanList;
        }
    }
    class Person1{
        private Man man;
        private List<Woman> womanList;

        public Man getMan() {
            return man;
        }

        public void setMan(Man man) {
            this.man = man;
        }

        public List<Woman> getWomanList() {
            return womanList;
        }

        public void setWomanList(List<Woman> womanList) {
            this.womanList = womanList;
        }
    }
}
